package com.itheima.test0906.test02;

public class test {
    public static void main(String[] args) {

        Outer outer = new Outer();
        outer.method();

        System.out.println("-------------------");

        Outer.Inner inner = new Outer().new Inner();
        System.out.println(inner.num);
        inner.show();

        System.out.println("*******************");
        Outer.Inner1 inner1 = new Outer.Inner1();
        System.out.println(inner1.num);
        inner1.show();

        System.out.println("--------------------");

        Outer outer1 = new Outer();
        outer1.method1();

        System.out.println("**********************");

        Outer outer2 = new Outer();
        outer2.method3();

        System.out.println("***********************");

        JieKou jieKou = new JieKou() {
            @Override
            public void method() {
                System.out.println("重写的子类方法1");
            }

            @Override
            public void method1() {
                System.out.println("重写的子类方法2");
            }
        };
        jieKou.method();
        jieKou.method1();
    }
}
